<?php

App::uses('AppController', 'Controller');

class MainController extends AppController
{
    public $name = 'Main';
    public $uses = array('Page');
    
    // Páginas do CMS AQUI
    function admin_index()
    {
        $this->layout = 'admin';
        
        $Pages = $this->Page->find('all');
        $this->set('Pages', $Pages);
    }
    
    function admin_management()
    {
        $this->layout = 'admin';
        
        $Pages = $this->Page->find('all');
        $this->set('Pages', $Pages);
    }
}
